package com.world.common.domain;

import cn.hutool.http.HttpStatus;

/**
 * 响应失败
 *
 * @author WangYX
 * @version 1.0.0
 * @date 2023/08/29 10:49
 */
public class ErrorResponseData<T> extends ResponseData<T> {


    public ErrorResponseData() {
        super(HttpStatus.HTTP_INTERNAL_ERROR, null, "失败");
    }

    public ErrorResponseData(T data) {
        super(HttpStatus.HTTP_INTERNAL_ERROR, data, "失败");
    }

    public ErrorResponseData(T data, String msg) {
        super(HttpStatus.HTTP_INTERNAL_ERROR, data, msg);
    }

    public ErrorResponseData(Integer code, String msg) {
        super(code, null, msg);
    }

    public ErrorResponseData(Integer code, T data, String msg) {
        super(code, data, msg);
    }

}
